﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace h2sbk_sharp.DoNetExt
{
    public static class JsonExt
    {
        public static string ToJson(this object obj)
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.Indented);
        }
    }
}